// 账号-手机-邮箱登录
export const login = (axios,data) => {
	return axios({
		url: `/auth/login`,
		method: 'post',
		data: data,
		headers: {
			isToken: false,
		},
	});
}
// 手机短信登录
export const smsLogin = (axios,data) => {
	return axios({
		url: `/auth/smsLogin`,
		method: 'post',
		data: data,
		headers: {
			isToken: false,
		},
	});
}
// 邮箱验证码登录
export const emailLogin = (axios,data) => {
	return axios({
		url: `/auth/emailLogin`,
		method: 'post',
		data: data,
		headers: {
			isToken: false,
		},
	});
}
// 手机号注册
export const mobileRegister = (axios,data) => {
	return axios({
		url: `/auth/mobileRegister`,
		method: 'post',
		data: data,
		headers: {
			isToken: false,
		},
	});
}
// 邮箱验证码注册
export const emailRegister = (axios,data) => {
	return axios({
		url: `/auth/emailRegister`,
		method: 'post',
		data: data,
		headers: {
			isToken: false,
		},
	});
}
// 短信重置密码
export const resetPwdSms = (axios,data) => {
	return axios({
		url: `/auth/resetPasswordByMobile`,
		method: 'post',
		data: data,
		headers: {
			isToken: false,
		},
	});
}
// 邮箱重置密码
export const resetPwdEmail = (axios,data) => {
	return axios({
		url: `/auth/resetPasswordByEmail`,
		method: 'post',
		data: data,
		headers: {
			isToken: false,
		},
	});
}
// 绑定展商
export const bindExhibitor = (axios,data) => {
	return axios({
		url: `/auth/bindExhibitor`,
		method: 'post',
		data: data,
		headers: {
			isToken: false,
		},
	});
}
// 绑定展商
export const unbindExhibitor = (axios,data) => {
	return axios({
		url: `/auth/unbindExhibitor`,
		method: 'post',
		data: data,
		headers: {
			isToken: false,
		},
	});
}
// 获取当前登录用户接口
export const getInfo = (axios) => {
	return axios({
		url: '/auth/getInfo',
		method: 'get',
	});
}
// 登出
export const logout = (axios,data) => {
	return axios({
		url: `/auth/logout`,
		method: 'post',
		data: data,
		headers: {
			isToken: false,
		},
	});
}
// 发送注册短信验证码
export const sendSmsCode = (axios,mobile, data) => {
	return axios({
		url: `/common/sendSmsCode/${mobile}`,
		method: 'get',
		params: data,
		headers: {
			isToken: false,
		},
	});
}

// 发送注册邮箱验证码
export const sendEmailCode = (axios,email, data) => {
	return axios({
		url: `/common/sendEmailCode/${email}`,
		method: 'get',
		params: data,
		headers: {
			isToken: false,
		},
	});
}
// 获取验证码
export const getCodeImg = (axios) => {
	return axios({
		url: '/common/captcha/init',
		method: 'get',
		headers: {
		  isToken: false,
		},
		timeout: 20000
	});
}


// 修改当前登录用户信息
export const editInfo = (axios,data) => {
	return axios({
		url: '/member/updateProfile',
		method: 'post',
		data:data,
	});
}